<template>
  <div
    class="jy-style-height copyright-box"
    :style="{
      backgroundImage: `url(${publicUrls + 'free/style10/publicStyle10Bg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="cultural-bg">
      <div class="copyright-heard">
        <div class="backHome" @click="blankHome">
          <i class="freeIcon">&#xe642;</i>
        </div>

        <div
          class="heard-title"
          :style="{
            backgroundImage: `url(${
              publicUrls + 'free/style10/publicStyle10titleBg.png' + '?imageView2/3/format/webp'
            })`,
          }"
        >
          版权声明
        </div>
        <div class="backHome"></div>
      </div>
      <div
        class="copyright-content"
        :style="{
          backgroundImage: ` url(${publicUrls + 'free/style10/copyright10Bg.png' + '?imageView2/3/format/webp'})`,
        }"
      >
        <scrollBox
          color="#56677B"
          v-if="Scrollheights"
          :remarks="commonStore.copyrightInfo"
          :byid="234"
          :tabbmScroll="getTabmComputed"
          :height="getScrollWComputed"
        >
          <template #solidBorder>
            <div class="solidBorder-child"></div>
          </template>
        </scrollBox>
      </div>
      <div class="content-door">
        <i class="iconfonts">&#xe6dd;</i>
        <span>永不落幕的展览与展示平台</span>
      </div>
    </div>
    <MenuNavigation />
  </div>
</template>

<script lang="ts">
export default defineComponent({
  name: 'style10',
});
</script>  

<script setup lang="ts">
import { publicUrls, doorUrl } from '@/utils/minxin';
import { commonDataStore, useProjectStore } from '@/store';
import { defineComponent, nextTick, ref, computed } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import ScrollBox from '../scrollBox10.vue';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const commonStore = commonDataStore();
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const content = ref(null);
const Scrollheights = ref();

let viewportHeight = window.innerHeight;
Scrollheights.value = viewportHeight * 0.4;
const getScrollWComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 468;
  return heights;
});
const getTabmComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 98;
  return heights;
});
const blankHome = () => {
  store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
</script>

<style scoped lang="less">
.copyright-box {
  width: 100%;
  padding-bottom: 0px;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
.cultural-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.copyright-heard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  margin-top: 118px;
  padding: 0 80px;
  // span {
  //   color: #5391a3;
  //   font-family: 'SourceHanSerifCN-Bold';
  //   font-size: 36px;
  //   line-height: 56px;
  // }
  .backHome {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    margin-left: 0 !important;
    .freeIcon {
      font-size: 34px;
      line-height: 34px;
      color: rgba(57, 56, 54, 1);
    }
  }
  .heard-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 258px;
    height: 68px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-family: SJxingkai-C;
    font-size: 40px;
    font-weight: 400;
    line-height: 60px;
    color: rgba(57, 56, 54, 1);
  }
}

.copyright-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1204px;
  height: 560px;
  padding-left: 179px;
  padding-right: calc(179px - 32px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.copyrightInfo {
  width: 100%;
  height: 100%;
}

.solidBorder-child {
  width: 4px;
  height: 100%;
  background: rgba(133, 134, 139, 0.3);
  border-radius: 25px;
}
:deep(.solid-box-parent) {
  position: absolute;
  right: -0px;
}
:deep(.unit-exbi-remarks-info-remarks) {
  width: calc(100% - 32px);
}
::v-deep .templatestyle1-scroll-box-tumb {
  display: flex;
  justify-content: center;
  top: -4px;
  .scrollBar {
    width: 4px;
    // height: 100%;
    height: 98px;
    background: linear-gradient(0deg, #5b5b5b 1.93%, #7e7e7e 100%);

    border-radius: 25px;
    box-shadow: none;
  }
}
::v-deep .unit-exbi-remarks-info-remarks {
  p {
    color: rgba(57, 56, 54, 0.8);
    font-size: 17px;
    line-height: 32px;
    text-align: justify;
    font-weight: normal;
  }
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  .iconfonts {
    font-size: 25px;
    line-height: 32px;
    color: rgba(156, 180, 158, 1);
    margin-top: 3px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 22.4px;
    text-align: left;
    color: rgba(156, 180, 158, 1);
    margin-left: 8px;
  }
}
:deep(.tumb-max) {
  top: calc(468px - 98px) !important;
}
.content-door {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  position: absolute;
  bottom: 0;

  .iconfonts {
    font-size: 26px;
    color: #85868b;
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: #85868b;
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
</style>